import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 网络摄像头
 */
// 获取全部网络摄像头
export function getVideoMonitors(params) {
  return get(`${packageName}/pc/videoMonitor/getVideoMonitors`, params)
}
// 获取网络摄像头列表
export function getVideoMonitorList(params) {
  return get(`${packageName}/pc/videoMonitor/getVideoMonitorList`, params)
}
// 获取网络摄像头详情
export function getVideoMonitor(params) {
  return get(`${packageName}/pc/videoMonitor/getVideoMonitor`, params)
}
// 删除网络摄像头
export function delVideoMonitor(params) {
  return del(`${packageName}/pc/videoMonitor/delVideoMonitor`, params)
}
// 保存网络摄像头
export function saveVideoMonitor(params) {
  return post(`${packageName}/pc/videoMonitor/saveVideoMonitor`, params)
}
// 获取网络摄像头-萤石
export function getVideoMonitorYs(params) {
  return get(`${packageName}/pc/videoMonitor/getVideoMonitor`, params)
}

/**
 * 安全帽摄像头
 */
// 获取全部安全帽摄像头
export function getVideoSafetyHats(params) {
  return get(`${packageName}/pc/videoSafetyHat/getVideoSafetyHats`, params)
}
// 获取安全帽摄像头列表
export function getVideoSafetyHatList(params) {
  return get(`${packageName}/pc/videoSafetyHat/getVideoSafetyHatList`, params)
}
// 获取安全帽摄像头详情
export function getVideoSafetyHat(params) {
  return get(`${packageName}/pc/videoSafetyHat/getVideoSafetyHat`, params)
}
// 删除安全帽摄像头
export function delVideoSafetyHat(params) {
  return del(`${packageName}/pc/videoSafetyHat/delVideoSafetyHat`, params)
}
// 保存安全帽摄像头
export function saveVideoSafetyHat(params) {
  return post(`${packageName}/pc/videoSafetyHat/saveVideoSafetyHat`, params)
}
